package com.qidianit.check.config;

import com.qidianit.check.login.CheckLoginInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @author 戴着假发的程序员
 * @company 起点编程
 * @date 2025/8/7 10:05
 * @description
 */
@Configuration
public class CheckConfig {
    @Bean
    public RestTemplate checkRestTemplate(RestTemplateBuilder builder){
        System.out.println("????");
        return builder.build();
    }

    @Bean
    public CheckLoginInterceptor checkLoginInterceptor(){
        return new CheckLoginInterceptor();
    }
}
